<?xml version="1.0" encoding="UTF-8" ?>  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core">

<h:head>
	<title>Flying Armbar</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</h:head>

<h:body>
	<h:outputStylesheet name="css/main.css" />
	<f:view contentType="text/html; charset=UTF-8" encoding="UTF-8" >
		<p:layout fullPage="true">
		
		    <p:layoutUnit position="west" size="200" header="Navigate" resizable="true" closable="false" collapsible="true">
		    	<h:form>
					<p:panelMenu style="width:200px">  
				        <p:submenu label="Gym" >  
				        	<p:submenu label="Member">
				        		<p:menuitem value="Register" icon="ui-icon-disk" url="/member/member/Register.xhtml" />  
				        		<p:menuitem value="Search" icon="ui-icon-person" url="/member/member/List.xhtml" />  
				        	</p:submenu>
				            <p:submenu label="Membership" >
				            	<p:menuitem value="New" icon="ui-icon-document" url="/member/membership/Create.xhtml"/> 
				            	<p:menuitem value="Search" icon="ui-icon-suitcase" url="/member/membership/List.xhtml"/>  
				            </p:submenu>
				           
				        </p:submenu>  
				        
				        <p:submenu label="Payment" >  
					        <p:submenu label="Membership" >
					        	<p:menuitem value="Pay" icon="ui-icon-person" url="/payment/membership/PayMembership.xhtml" />
					        	<p:menuitem value="Search" icon="ui-icon-person" url="/payment/membership/ListPayment.xhtml" />
					        </p:submenu>	  
				        </p:submenu>
				        
				        <p:submenu label="Admin">
				        	<p:menuitem value="User" icon="ui-icon-person" url="/admin/user/ListUser.xhtml"/>
				        </p:submenu>
				        
				    </p:panelMenu>  
					<h:commandButton value="logout" action="#{userMB.logout}" />				    
			    </h:form>
		    </p:layoutUnit>
		
		    <p:layoutUnit position="center">
				<ui:insert name="content"></ui:insert>
		    </p:layoutUnit>
		
		</p:layout>
                        	
		<div id="divMain">
			<ui:insert name="divMain" />
		</div>
		
		<h:outputScript library="javascript" name="jscodes.js" />
	</f:view>
</h:body>
</html>